<template>
  <div class="el-card" :class="shadow ? 'is-' + shadow + '-shadow' : 'is-always-shadow'">
    <div class="el-card__header" v-if="$slots.header || header" :style="headerStyle">
      <slot name="header">{{ header }}</slot>
    </div>
    <div class="el-card__body" :style="bodyStyle">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'VCard',
  props: {
    header: {},
    headerStyle: {},
    bodyStyle: {},
    shadow: {
      type: String
    }
  }
}
</script>
